<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var greeter = "hey hi";
    var times = 4;
    if (times < 3) {
        var greeter = "say Hello instead";
    }
    console.log(greeter) // "say Hello instead"
</script>
</body>
</html>